ShowTable of Contents
Overview
Lotus Expeditor Client for Desktop users may access locally running portlets. APAR LO53837 allows developers to decorate a portlet's title bar with an icon; this is similar in appearance to Eclipse views used throughout Expeditor.
Adding an Icon
Icons may be added through two methods which have slightly different use cases.
com.ibm.rcp.portletviewer.portlets Extension
When using the com.ibm.rcp.portletviewer.portlets extension point to add a portlet as a view in a perspective, APAR LO5383 adds an icon parameter to the portletData. The result is an icon in the view's title bar.
<extension point="com.ibm.rcp.portletviewer.portlets">
<portletData
contextroot="/PopupPortlet"
entityId="com.ibm.rcp.support.portlet.popup.portletviewer.PrimaryView"
portletname="PopupPortlet"
portletwindowid="default"
icon="icons/16.gif">
</portletData>
</extension>
Side Shelf Portlets
Portlets like any other Eclipse view can be added to the side shelf. To display an icon within the side shelf portlet, a preference must be added to the portlet.xml bundled within the plugin.
<portlet-preferences>
<preference>
<!-- references the plugin's image file -->
<name>icon</name>
<value>icons/16.gif</value>
</preference>
</portlet-preferences>
Sample Details
Sample code is being moved. This article will be updated when posting is complete.
com.ibm.rcp.support.portlet.popup
Provides the portlet to the Expeditor client. The portlet.xml demonstrated above is contained within this plugin.
com.ibm.rcp.support.portlet.popup.portletviewer
Creates a launch item to view the portlet. The extension point demonstrated above is contained within this plugin.
PortletSideShelf.ca
Provides a composite application that contains the portlet within the side shelf.
Running the Sample
Access the "Sample : Popup Portlet" launch item in the Open menu to demonstrate the com.ibm.rcp.portletviewer.portlets extension. Open the PortletSideShelf.ca using File -> Open -> Composite Application to demonstrate the side shelf portlet.